package com.chuanyang.driverh.mainmy;

import android.os.Bundle;
import android.support.v4.app.Fragment;

import com.chuanyang.driverh.R;
import com.chuanyang.driverh.base.BaseTitleActivity;
import com.chuanyang.driverh.mainmy.fragment.HistoryOrderWaybillFragment;

public class OrderHistoryActivity extends BaseTitleActivity {
    private Fragment mFragment;

    @Override
    protected int getContentResId() {
        return R.layout.base_single_fragment_activity;
    }

    @Override
    protected void initView(Bundle savedInstanceState) {

    }

    @Override
    protected void initData() {
        setBackImg();
        getTitleTextView().setText("查看历史");


        if (mFragment == null) {
            mFragment = createFragment();
        }
        getSupportFragmentManager().beginTransaction()
                .add(R.id.single_fragment_content, mFragment).commit();

    }
    public Fragment createFragment() {
        return new HistoryOrderWaybillFragment();
    }

    @Override
    protected void initListener() {

    }
}
